package com.sinothk.software.ui.base;

import ohos.aafwk.content.Intent;
import ohos.agp.components.Component;
import ohos.agp.window.service.WindowManager;

public class WelcomeBaseAbilitySlice extends BaseAbilitySlice {


    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
        // 隐藏状态栏、设置状态栏和导航栏透明
        getWindow().addFlags(
                WindowManager.LayoutConfig.MARK_FULL_SCREEN |
                        WindowManager.LayoutConfig.MARK_TRANSLUCENT_STATUS |
                        WindowManager.LayoutConfig.MARK_TRANSLUCENT_NAVIGATION);
        // 隐藏导航栏（部分系统无效）
        getWindow().setStatusBarVisibility(Component.HIDE);
    }
}
